// 获取支付中台token 模型
class PayTokenApplyModel {
  String? accessToken;
  String? userToken;

  PayTokenApplyModel({this.accessToken, this.userToken});

  PayTokenApplyModel.fromJson(Map<String, dynamic> json) {
    accessToken = json["accessToken"];
    userToken = json["userToken"];
  }

  static List<PayTokenApplyModel> fromList(List<Map<String, dynamic>> list) {
    return list.map(PayTokenApplyModel.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["accessToken"] = accessToken;
    _data["userToken"] = userToken;
    return _data;
  }

  PayTokenApplyModel copyWith({
    String? accessToken,
    String? userToken,
  }) => PayTokenApplyModel(
    accessToken: accessToken ?? this.accessToken,
    userToken: userToken ?? this.userToken,
  );
}